<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=0, viewport-fit=cover" />
	<title>obj</title>
</head>
<body>
<script>

const obj = {}

const a = '八维'
const o1 = { name: 'zhangsan' }
const o2 = { name: 'lisi' }

obj.a = '吃了'
obj[a] = '喝了'

obj[o1.toString()] = 1
obj[o2.toString()] = 2

console.log(`obj----`, obj)

</script>
</body>
</html>
